/**
 * 点对应图标
 * @param name
 * @returns {string}
 */
function pointIcon(name) {
    switch (name) {
        case "餐饮娱乐":
            return "🍔"
        case "文化教育":
            return "🏫"
        case "医疗卫生":
            return "🏥"
        case "公共场所":
            return "🗻"
        case "金融机构":
            return "💵"
        case "居民小区":
            return "🏢"
        case "联通营业厅":
            return "📞"
        case "旅游景点":
            return "🏯"
        case "汽车服务":
            return "🚗"
        case "商业网点":
            return "🏬"
        case "新闻媒体":
            return "🙋"
        case "邮电通讯":
            return " ✉ "
        case "政府机关":
            return "<font style='color: red'> ☭ </font>"
    }
}

/**
 * 区域图标
 * @param name
 * @returns {string}
 */
function regionIcon(name) {
    switch (name) {
        case "行政区":
            return "⭐"
        case "城市植被":
            return "🌲"
        case "城市水系":
            return "🌊"
        case "居民地域":
            return "🏡"

    }
}

/**
 * 线段图标
 * @param name
 * @returns {string}
 */
function lineIcon(name) {
    switch (name) {
        case "城市中心线":
            return "🗼"
    }
}

/**
 *
 * @param {SingleLayerInfo} it
 * @returns {string}
 */
function getIcon(it) {
    switch (it.GeomType) {
        case "Pnt":
            return pointIcon(it.Name)
        case "Reg":
            return regionIcon(it.Name)
        case "Lin":
            return lineIcon(it.Name)
    }
    return ""
}